<div class="row">
    {% for link in links %}
    <div class="col-md-4 mb-3 link-item" data-type="{{ link.link_type }}">
        <div class="card">
            <div class="card-body">
                <h5 class="card-title">{{ link.name }}</h5>
                <p class="card-text">{{ link.description }}</p>
                <a href="{{ link.url }}" class="btn btn-primary" target="_blank">Visit Link</a>
            </div>
        </div>
    </div>
    {% endfor %}
</div>
